import Vue from 'vue'
import Router from 'vue-router'

/**
 * requireAuth：是否需要登录
 */

Vue.use(Router)
let router = new Router({
  // mode:"history",
  routes: [{
      path: '/newsshare',
      name: 'newsshare',
      component: () => import('../views/part/newsDetailshare.vue'),
      meta: {
        title: '',
      }
    },
    {
      path: '/registershare',
      name: 'registershare',
      component: () => import('../views/loginAndregister/registershare.vue'),
      meta: {
        title: '自助注册',
        nofooter: false,
        nav: true
      }
    }

  ],
  scrollBehavior(to, from, savedPosition) {
    return {
      x: 0,
      y: 0
    }
  }
})



export default router
